package com.panshi.comtroller;

import com.panshi.service.IPariseService;
import com.panshi.vo.PariseVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

@Slf4j
@RestController
@RequestMapping("/parise")
public class PariseController {

    @Resource
    private IPariseService iPariseService;

    @PostMapping("/addParise")
    public Map<String,Object> addParise(@RequestBody PariseVO pariseVO){

        return iPariseService.addParise(pariseVO);
    }


}
